﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search_info_student.aspx.cs" Inherits="search_info_student" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>查询学生基本信息</title>
    <style type="text/css">
        #form1 {
            text-align: center;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
        <br />
        <br />
        <center>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Sno" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Sno" HeaderText="学号" ReadOnly="True" SortExpression="Sno" />
                <asp:BoundField DataField="Sname" HeaderText="姓名" SortExpression="Sname" />
                <asp:BoundField DataField="Sclass" HeaderText="班级" SortExpression="Sclass" />
                <asp:BoundField DataField="Ssex" HeaderText="性别" SortExpression="Ssex" />
                <asp:BoundField DataField="Smajor" HeaderText="专业" SortExpression="Smajor" />
                <asp:BoundField DataField="Syear" HeaderText="年龄" SortExpression="Syear" />
                <asp:BoundField DataField="flag_register" HeaderText="是否注册" SortExpression="flag_register" />
                <asp:BoundField DataField="flag_quit" HeaderText="是否退学" SortExpression="flag_quit" />
                <asp:BoundField DataField="flag_rest" HeaderText="是否休学" SortExpression="flag_rest" />
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
            </center>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XSXKConnectionString4 %>" SelectCommand="SELECT * FROM [Student]"></asp:SqlDataSource>
    </form>
</body>
</html>
